<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
//    var length = 'length' in arr && arr.length;
//    return typeof length ==='number' && length >=0;


    function isArrayLike(obj){
        if(Object.prototype.toString.call(obj)=='[object Array]'){
            return true;
        }
        var length = 'length' in arr && arr.length;
        return typeof length ==='number' && length >=0;
    }
</script>
</body>
</html>